package com.miyu.client1.utils.baseDao;

import com.blinkfox.fenix.jpa.FenixJpaRepository;
import com.blinkfox.fenix.jpa.FenixJpaRepositoryFactoryBean;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.data.repository.NoRepositoryBean;

import javax.persistence.EntityManager;
import java.io.Serializable;

@NoRepositoryBean
@EnableJpaRepositories(repositoryFactoryBeanClass = MiyuJpaRepositoryFactory.class) //第三方jpa管理dao
public interface BaseDao <T,ID extends Serializable> extends MiyuJpaRepository<T,ID>, JpaSpecificationExecutor<T> { }
//@EnableJpaRepositories(repositoryFactoryBeanClass = FenixJpaRepositoryFactoryBean.class) //第三方jpa管理dao
//public interface BaseDao <T,ID extends Serializable> extends FenixJpaRepository<T,ID>, JpaSpecificationExecutor<T> { }
//public interface BaseDao <T,ID extends Serializable> extends JpaRepository<T,ID> , JpaSpecificationExecutor<T> { }
